@extends('layouts.app')

@section('content')
    <section class="content-header">
        <h1>
            微信公众号设置
        </h1>
   </section>
   <div class="content">
       @include('adminlte-templates::common.errors')
       <div class="box box-primary">
           <div class="box-body">
               <div class="row" style="margin-left: 30px">
                   <label>
                       <b>微信公众号设置</b>
                   </label>

               </div>
               <div class="row" style="margin-left: 20px">
                   <label>
                       1 基础配置 -> IP白名单 -> 添加 101.132.104.51
                   </label>

               </div>
               <div class="row" style="margin-left: 20px">
                   <label>
                       2 公众号设置 -> 功能设置 -> 网页授权域名 -> 改为 huoma.zkong.me 服务器验证文件请联系我们替您上传
                   </label>
               </div>
               <div class="row">
                   <form action="{!! route('setting.wechat.post') !!}" method="post">

                       <div class="form-group col-sm-12">
                           {!! Form::label('subscribe_reply', '公众号关注回复:') !!}
                           {!! Form::text('subscribe_reply', $wechat->subscribe_reply, ['class' => 'form-control']) !!}
                       </div>

                       <div class="form-group col-sm-12">
                           {!! Form::label('app_id', 'app_id:') !!}
                           {!! Form::text('app_id', $wechat->app_id, ['class' => 'form-control']) !!}
                       </div>

                       <div class="form-group col-sm-12">
                           {!! Form::label('secret', 'secret:') !!}
                           {!! Form::text('secret', $wechat->secret, ['class' => 'form-control']) !!}
                       </div>


                       <div class="form-group col-sm-12">
                           {!! Form::label('token', 'token:') !!}
                           {!! Form::text('token', $wechat->token, ['class' => 'form-control']) !!}
                       </div>


                       <div class="form-group col-sm-12">
                           {!! Form::label('aes_key', 'aes_key:') !!}
                           {!! Form::text('aes_key', $wechat->aes_key, ['class' => 'form-control']) !!}
                       </div>

                       <div class="form-group col-sm-12">
                           公众号是否认证
                           {!! Form::radio('is_auth', 1,isset($wechat)?($wechat->is_auth==1?true:false):true) !!}是
                           {!! Form::radio('is_auth', 0,isset($wechat)?($wechat->is_auth==0?true:false):true) !!}否
                       </div>

                       <!-- Submit Field -->
                       <div class="form-group col-sm-12">
                           {!! Form::submit('保存', ['class' => 'btn btn-primary']) !!}
                       </div>
                   </form>
               </div>
           </div>
       </div>
   </div>
@endsection